﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" 
Inherits="Nivdal.MatchRatings" Title="" Theme="SkinFile" Codebehind="MatchRatings.aspx.cs" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_PageNameLabel  %>" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>

<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
    <style type="text/css">
        
        .TabsStyle .ajax__tab_header { 
            border-bottom:solid 2px Silver;
        } 

        .TabsStyle .ajax__tab_outer    { 
               
        } 

        .TabsStyle .ajax__tab_inner    { 
              
        } 

        .TabsStyle .ajax__tab_tab { 
              background-image:url(Images/Wall_tab_regular.jpg);
              background-repeat:no-repeat;
              background-position:bottom;
        } 

        .TabsStyle .ajax__tab_hover .ajax__tab_outer { 
             
        } 

        
        .TabsStyle .ajax__tab_hover .ajax__tab_inner { 
             
        } 

        .TabsStyle .ajax__tab_hover .ajax__tab_tab { 
              background-image:url(Images/Wall_tab_over.jpg);
              background-repeat:no-repeat;
              background-position:bottom;
              
        } 

        .TabsStyle .ajax__tab_active .ajax__tab_outer { 
             
        } 

        .TabsStyle .ajax__tab_active .ajax__tab_inner { 
              
        } 

        .TabsStyle .ajax__tab_active .ajax__tab_tab { 
            background-image:url(Images/Wall_tab_over.jpg);
            background-repeat:no-repeat;
            background-position:bottom;            
        }

        .TabsStyle .ajax__tab_header { 
             font-family:Arial; 
             font-size:14px; 
             font-weight:bold;
        } 

        .TabsStyle .ajax__tab_outer { 
             height:28px;
        } 

        .TabsStyle .ajax__tab_inner    { 
              
        } 

        .TabsStyle .ajax__tab_tab { 
             width:149px;
             height:28px;
             margin:0; 
        } 

        .TabsStyle .ajax__tab_body { 
             
        } 
         
    </style>
    <script type="text/javascript" language="javascript">
        function ShowPlayersSum() {
            $(document.getElementById('DetailsHome')).hide();
            $(document.getElementById('DetailsAway')).hide();
            $(document.getElementById('PlayersSum')).fadeIn(100);            
        }

        function ShowDetailsHome() {
            $(document.getElementById('DetailsAway')).hide();
            $(document.getElementById('PlayersSum')).hide();
            $(document.getElementById('DetailsHome')).fadeIn(100);
        }

        function ShowDetailsAway() {
            $(document.getElementById('DetailsAway')).fadeIn(100);
            $(document.getElementById('DetailsHome')).hide();
            $(document.getElementById('PlayersSum')).hide();
        }

    </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="basic_element">
    <div class="red_title">
       <asp:HyperLink ID="MatchHyperlink" runat="server" CssClass="white_title"></asp:HyperLink>
    </div>
    <div class="padding5">

    <asp:Label ID="ConfirmNote" runat="server" Text=""></asp:Label>
    <asp:HiddenField ID="MatchIdHiddenField" runat="server" />
    <asp:HiddenField ID="DetailsExistHiddenField" runat="server" />
    
    <br /><br />
    <asp:TabContainer ID="RatingTabs" runat="server" ActiveTabIndex="0" CssClass="TabsStyle" >
        <asp:TabPanel runat="server">
        <HeaderTemplate>
            <div style="padding-top:8px;">
                <asp:Label ID="SummaryTitleLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_SummaryLinkButtonText  %>"
                 SkinID="TeamNameLabel"></asp:Label>
            </div>
        </HeaderTemplate>
        <ContentTemplate>
            <div style="padding-top:25px;">
            <asp:GridView ID="PostMatchStatisticsGridView" runat="server" DataSourceID="PostMatchStatisticsSqlDataSource"
            SkinID="Professional" AutoGenerateColumns="False" AllowPaging="false" EnableTheming="True">
                <Columns>
                    <asp:TemplateField HeaderText="<%$ Resources:Resource, MatchRatings_HomeTeamHeaderText  %>" ItemStyle-Width="35%">
                        <ItemTemplate>
                            <asp:Panel ID="OppositeDirectionPanel" runat="server" Direction='<%# OppositeDirection() %>'>                            
                                <asp:Label ID="HomeTeamLabel" runat="server" Text='<%# Eval("HomeTeam")%>' SkinID="GridLabel"> </asp:Label>
                            </asp:Panel>
                        </ItemTemplate>
                    </asp:TemplateField>
                     <asp:TemplateField ItemStyle-Width="30%" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:Label ID="StatsNameLabel" runat="server" Text='<%# Eval("StatsName")%>' SkinID="GridLabel"> </asp:Label>
                            
                        </ItemTemplate>
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="<%$ Resources:Resource, MatchRatings_AwayTeamHeaderText  %>" ItemStyle-Width="35%">
                        <ItemTemplate>
                            <asp:Label ID="AwayTeamLabel" runat="server" Text='<%# Eval("AwayTeam")%>' SkinID="GridLabel"> </asp:Label>                          
                        </ItemTemplate>
                    </asp:TemplateField>
                    </Columns>
                <EmptyDataTemplate>
                    No Statistics available
                </EmptyDataTemplate>
            </asp:GridView>
            <asp:SqlDataSource ID="PostMatchStatisticsSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                SelectCommand="Nivdal_GetPostMatchStatistics" SelectCommandType="StoredProcedure">
            </asp:SqlDataSource>
            </div>
        </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel runat="server">
            <HeaderTemplate>
                <div style="padding-top:8px;">
                    <asp:Label ID="PlayerRatingsLabel" runat="server" Text="<%$ Resources:Resource, Global_Players %>"
                    SkinID="TeamNameLabel"></asp:Label>
               </div>
            </HeaderTemplate>
            <ContentTemplate>
                <div id="PlayersSum" style="padding-top:25px;">
                    <table style="width:100%;vertical-align:top;">
                        <tr>
                            <td style="width:50%; vertical-align:top;">
                                <asp:FormView ID="HomeTeamFormView2" runat="server" DataSourceID="HomeTeamDataSourse">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="TeamHyperlink" runat="server" Text='<%# Eval("TeamName") %>' 
                                        SkinId="WallHyperlink" NavigateUrl='<%# "~/TeamHomePage.aspx?TeamId=" + Eval("TeamId") %>'
                                         Visible='<%# !(bool)Eval("IsNT") %>'></asp:HyperLink>
                                         <asp:HyperLink ID="NTTeamLink" runat="server" Text='<%# Eval("TeamName") %>' 
                                        SkinId="WallHyperlink" NavigateUrl='<%# "~/NationalTeam.aspx?Id=" + Eval("TeamId") %>'
                                         Visible='<%# Eval("IsNT") %>'></asp:HyperLink>
                                    </ItemTemplate>
                                </asp:FormView>
                                <asp:LinkButton ID="ShowHomeDetailsLinkButton" runat="server" OnClientClick="javascript:ShowDetailsHome(); return false;"
                                 SkinID="GreenTitleLink" Text="<%$ Resources:Resource, MatchRatings_ShowDetailsLinkButtonText %>"></asp:LinkButton>
                                <br />
                                <asp:GridView ID="HomeSummaryGridview" runat="server" AutoGenerateColumns="false" SkinID="BigProfessional"
                                 DataSourceID="HomePlayersRatingsSumaryDataSourse" AllowPaging="false">
                                    <Columns>
                                        <asp:TemplateField>
                                            <HeaderTemplate>
                                                <asp:Label ID="PlayerHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_Player  %>"></asp:Label>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:HyperLink ID="PlayerHyperlink" runat="server" Text='<%# Eval("PlayerName") %>' SkinID="GreenTitleHyperLink"
                                                 NavigateUrl='<%# "~/Player.aspx?Id=" + Eval("PlayerId") %>'></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <HeaderTemplate>
                                                <asp:Label ID="PositionHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_Position  %>"></asp:Label>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="PositionTextLabel" runat="server" Text='<%# Eval("PositionName") %>' SkinID="GridLabel"></asp:Label>
                                            </ItemTemplate>         
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <HeaderTemplate>
                                                <asp:Label ID="RatingHeaderLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_RatingHeaderLabel  %>"  ToolTip="<%$ Resources:Resource, MatchRatings_RatingHeaderToolTip  %>"></asp:Label>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="RatingLabel" runat="server" Text='<%# Eval("Rating") + " (" + Eval("Minutes") + "`)" %>' SkinID="GridLabel"> </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <asp:Label ID="EmptyDataLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_NoRatingsLabelText %>"></asp:Label>
                                    </EmptyDataTemplate>
                                </asp:GridView>
                            </td>
                            <td style="width:50%; vertical-align:top;">
                                <asp:FormView ID="AwayTeamFormView" runat="server" DataSourceID="AwayTeamDataSourse">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="TeamHyperlink" runat="server" Text='<%# Eval("TeamName") %>' SkinId="WallHyperlink"
                                         NavigateUrl='<%# "~/TeamHomePage.aspx?TeamId=" + Eval("TeamId") %>' 
                                         Visible='<%# !(bool)Eval("IsNT") %>'></asp:HyperLink>
                                        <asp:HyperLink ID="NTTeamLink" runat="server" Text='<%# Eval("TeamName") %>' 
                                        SkinId="WallHyperlink" NavigateUrl='<%# "~/NationalTeam.aspx?Id=" + Eval("TeamId") %>'
                                         Visible='<%# Eval("IsNT") %>'></asp:HyperLink>
                                    </ItemTemplate>
                                </asp:FormView>
                                <asp:LinkButton ID="ShowAwayDetaiilsLinkButton" runat="server" OnClientClick="javascript:ShowDetailsAway(); return false;"
                                 SkinID="GreenTitleLink" Text="<%$ Resources:Resource, MatchRatings_ShowDetailsLinkButtonText %>"></asp:LinkButton>
                                <br />
                                <asp:GridView ID="AwaySummaryGridview" runat="server" AutoGenerateColumns="false" SkinID="BigProfessional"
                                 DataSourceID="AwayPlayersRatingsSumaryDataSourse" AllowPaging="false">
                                    <Columns>
                                        <asp:TemplateField>
                                            <HeaderTemplate>
                                                <asp:Label ID="PlayerHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_Player  %>"></asp:Label>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:HyperLink ID="PlayerHyperlink" runat="server" Text='<%# Eval("PlayerName") %>' SkinID="GreenTitleHyperLink"
                                                 NavigateUrl='<%# "~/Player.aspx?Id=" + Eval("PlayerId") %>'></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <HeaderTemplate>
                                                <asp:Label ID="PositionHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_Position  %>"></asp:Label>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="PositionTextLabel" runat="server" Text='<%# Eval("PositionName") %>' SkinID="GridLabel"></asp:Label>
                                            </ItemTemplate>         
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <HeaderTemplate>
                                                <asp:Label ID="RatingHeaderLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_RatingHeaderLabel  %>"  ToolTip="<%$ Resources:Resource, MatchRatings_RatingHeaderToolTip  %>"></asp:Label>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="RatingLabel" runat="server" Text='<%# Eval("Rating") + " (" + Eval("Minutes") + "`)" %>' SkinID="GridLabel"> </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <asp:Label ID="EmptyDataLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_NoRatingsLabelText %>"></asp:Label>
                                    </EmptyDataTemplate>
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                    
                    
                    <asp:SqlDataSource ID="HomePlayersRatingsSumaryDataSourse" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                        SelectCommand="Nivdal_GetMatchHomeTeamRatingsSummary" SelectCommandType="StoredProcedure">
                    </asp:SqlDataSource> 
                    <asp:SqlDataSource ID="AwayPlayersRatingsSumaryDataSourse" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                        SelectCommand="Nivdal_GetMatchAwayTeamRatingsSummary" SelectCommandType="StoredProcedure">
                    </asp:SqlDataSource> 
                </div>
            
            
                <div id="DetailsHome" style="padding-top:25px; display:none;">
                    <asp:FormView ID="HomeTeamDetailsTitleFormView" runat="server" DataSourceID="HomeTeamDataSourse">
                        <ItemTemplate>
                            <asp:HyperLink ID="TeamHyperlink" runat="server" Text='<%# Eval("TeamName") %>' SkinId="WallHyperlink"
                             NavigateUrl='<%# ((bool)Eval("IsNT")) ? "~/NationalTeam.aspx?Id=" + Eval("TeamId") : "~/TeamHomePage.aspx?TeamId=" + Eval("TeamId") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:FormView>
                    <asp:LinkButton ID="BackToSummaryLinkButton1" runat="server" OnClientClick="javascript:ShowPlayersSum(); return false;"
                    SkinID="GreenTitleLink" Text="<%$ Resources:Resource, MatchRatings_ToSummaryLinkButtonText %>"></asp:LinkButton>
                        
                    <br />
                    <asp:GridView ID="PlayerRatingsForHomeTeamGridView" runat="server" DataSourceID="playerRatingsForHomeTeamSqlDataSource"
                        SkinID="BigProfessional" AutoGenerateColumns="False" AllowPaging="false" EnableTheming="True">
                        <Columns>
                            <asp:TemplateField ItemStyle-Width="15%">
                                <HeaderTemplate>
                                    <asp:Label ID="PlayerHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_Player  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:HyperLink ID="MatchTitleHyperLink" runat="server" Text='<%# Eval("PlayerName") %>'
                                        NavigateUrl='<%# Eval("PlayerId", "Player.aspx?Id={0}") %>' SkinID="GreenTitleHyperLink"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="20%">
                                <HeaderTemplate>
                                    <asp:Label ID="PositionHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_Position  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="PositionTextLabel" runat="server" Text='<%# Eval("PositionName") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="4%">
                                <HeaderTemplate>
                                    <asp:Label ID="RatingHeaderLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_RatingHeaderLabel  %>"  ToolTip="<%$ Resources:Resource, MatchRatings_RatingHeaderToolTip  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="RatingLabel" runat="server" Text='<%# Eval("Rating")%>' SkinID="GridLabel"> </asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="4%">
                                <HeaderTemplate>
                                    <asp:Label ID="MinutesPlayedHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_Minutes  %>" ToolTip="<%$ Resources:Resource, Global_MinutesPlayed  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="MinutesPlayedTextLabel" runat="server" Text='<%# Eval("MinutesPlayed") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="4%">
                                <HeaderTemplate>
                                    <asp:Label ID="GoalsScoredHeaderLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_GoalsScoredHeaderLabel  %>" ToolTip="<%$ Resources:Resource, Global_GoalsScored  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="GoalsScoredTextLabel" runat="server" Text='<%# Eval("GoalsScored") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="4%">
                                <HeaderTemplate>
                                    <asp:Label ID="FoulsHeaderLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_FoulsHeaderLabel  %>" ToolTip="<%$ Resources:Resource, MatchRatings_FoulsHeaderToolTip  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="FoulsTextLabel" runat="server" Text='<%# Eval("Fouls") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="4%">
                                <HeaderTemplate>
                                    <asp:Image ID="YellowCardsImage" runat="server" ImageUrl="~/Images/MatchIcons/yellow.png" ToolTip="<%$ Resources:Resource, MatchRatings_YellowCardsImageToolTip  %>" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="YellowCardsTextLabel" runat="server" Text='<%# Eval("YellowCards") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="5%">
                                <HeaderTemplate>
                                    <asp:Image ID="RedCardsHeaderImage" runat="server" ImageUrl="~/Images/MatchIcons/red.png" ToolTip="<%$ Resources:Resource, MatchRatings_RedCardsImageToolTip  %>" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="RedCardsTextLabel" runat="server" Text='<%# Eval("RedCards") %>' SkinID="GridLabel" ></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="8%">
                                <HeaderTemplate>
                                    <asp:Label ID="ShortPassesHeaderLeabel" runat="server" Text="<%$ Resources:Resource, Global_ShortPassingHeader  %>" ToolTip="<%$ Resources:Resource, MatchRatings_ShortPassesHeaderToolTip  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="ShortPassesGoodLeabel" runat="server" Text='<%# Eval("ShortPassesGood") %>' SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="ShortPassesDashLabel" runat="server" Text="/" ToolTip='<%# Eval("ShortPassesGood") + " out of " + Eval("ShortPasses") %>'
                                     SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="ShortPassesLabel" runat="server" Text='<%# Eval("ShortPasses") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="8%">
                                <HeaderTemplate>
                                    <asp:Label ID="LongPassesHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_LongPassingHeader  %>" ToolTip="<%$ Resources:Resource, Global_LongPasses  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="LongPassesGoodLabel" runat="server" Text='<%# Eval("LongPassesGood") %>' SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="LongPassesDashLabel" runat="server" Text="/" ToolTip='<%# Eval("LongPassesGood") + " out of " + Eval("LongPasses") %>'
                                     SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="LongPassesLabel" runat="server" Text='<%# Eval("LongPasses") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="8%">
                                <HeaderTemplate>
                                    <asp:Label ID="DribblesHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_DribblesHeader  %>" ToolTip="<%$ Resources:Resource, Global_Dribbles  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="DribblesGoodLabel" runat="server" Text='<%# Eval("DribblesGood") %>' SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="DribblesDashLabel" runat="server" Text="/" ToolTip='<%# Eval("DribblesGood") + " out of " + Eval("Dribbles") %>'
                                     SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="DribblesLabel" runat="server" Text='<%# Eval("Dribbles") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="8%">
                                <HeaderTemplate>
                                    <asp:Label ID="ShotsHeaderLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_ShotsHeaderLabel  %>" ToolTip="<%$ Resources:Resource, MatchRatings_ShotsHeaderToolTip  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="ShotsGoodLabel" runat="server" Text='<%# Eval("ShotsGood") %>' SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="ShotsDashLabel" runat="server" Text="/" ToolTip='<%# Eval("ShotsGood") + " out of " + Eval("Shots") %>'
                                     SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="ShotsLabel" runat="server" Text='<%# Eval("Shots") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="8%">
                                <HeaderTemplate>
                                    <asp:Label ID="HeadersHeaderLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_HeadersHeaderLabel  %>" ToolTip="<%$ Resources:Resource, Global_Headers  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="HeadersGoodLabel" runat="server" Text='<%# Eval("HeadersGood") %>' SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="HeadersDashLabel" runat="server" Text="/" ToolTip='<%# Eval("HeadersGood") + " out of " + Eval("Headers") %>'
                                     SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="ShotsLabel" runat="server" Text='<%# Eval("Headers") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                            
                           
                        </Columns>
                        <EmptyDataTemplate>
                            <asp:Label ID="NoPlayerLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_NoPlayerLabel  %>"></asp:Label>
                        </EmptyDataTemplate>
                    </asp:GridView>
                    <asp:SqlDataSource ID="playerRatingsForHomeTeamSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                        SelectCommand="Nivdal_GetPostMatchPlayerRatingsHome" SelectCommandType="StoredProcedure">
                    </asp:SqlDataSource>                            
                </div>
                <div id="DetailsAway" style="padding-top:25px; display:none;">
                    <asp:FormView ID="AwayTeamDetailsTitleFormView" runat="server" DataSourceID="AwayTeamDataSourse">
                        <ItemTemplate>
                            <asp:HyperLink ID="TeamHyperlink" runat="server" Text='<%# Eval("TeamName") %>' SkinId="WallHyperlink"
                             NavigateUrl='<%# ((bool)Eval("IsNT")) ? "~/NationalTeam.aspx?Id=" + Eval("TeamId") : "~/TeamHomePage.aspx?TeamId=" + Eval("TeamId") %>'></asp:HyperLink>
                             
                        </ItemTemplate>
                    </asp:FormView>
                    <asp:LinkButton ID="BackToSummaryLinkButton2" runat="server" OnClientClick="javascript:ShowPlayersSum(); return false;"
                        SkinID="GreenTitleLink" Text="<%$ Resources:Resource, MatchRatings_ToSummaryLinkButtonText %>"></asp:LinkButton>
                    <br />
                    <asp:GridView ID="GridView1" runat="server" DataSourceID="playerRatingsForAwayHomeTeamSqlDataSource"
                        SkinID="BigProfessional" AutoGenerateColumns="False"
                        AllowPaging="false" EnableTheming="True">
                        <Columns>
                            <asp:TemplateField ItemStyle-Width="15%">
                                <HeaderTemplate>
                                    <asp:Label ID="PlayerHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_Player  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:HyperLink ID="MatchTitleHyperLink" runat="server" Text='<%# Eval("PlayerName") %>'
                                        NavigateUrl='<%# Eval("PlayerId", "Player.aspx?Id={0}") %>' SkinID="GreenTitleHyperLink"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="20%">
                                <HeaderTemplate>
                                    <asp:Label ID="PositionHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_Position  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="PositionTextLabel" runat="server" Text='<%# Eval("PositionName") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="4%">
                                <HeaderTemplate>
                                    <asp:Label ID="RatingHeaderLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_RatingHeaderLabel  %>" ToolTip="<%$ Resources:Resource, MatchRatings_RatingHeaderToolTip  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="RatingLabel" runat="server" Text='<%# Eval("Rating")%>' SkinID="GridLabel"> </asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="4%">
                                <HeaderTemplate>
                                    <asp:Label ID="MinutesPlayedHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_Minutes  %>"  ToolTip="<%$ Resources:Resource, Global_MinutesPlayed  %>" ></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="MinutesPlayedTextLabel" runat="server" Text='<%# Eval("MinutesPlayed") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="4%">
                                <HeaderTemplate>
                                    <asp:Label ID="GoalsScoredHeaderLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_GoalsScoredHeaderLabel  %>" ToolTip="<%$ Resources:Resource, Global_GoalsScored  %>" ></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="GoalsScoredTextLabel" runat="server" Text='<%# Eval("GoalsScored") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="4%">
                                <HeaderTemplate>
                                    <asp:Label ID="FoulsHeaderLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_FoulsHeaderLabel  %>" ToolTip="<%$ Resources:Resource, MatchRatings_FoulsHeaderToolTip  %>" ></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="FoulsTextLabel" runat="server" Text='<%# Eval("Fouls") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="4%">
                                <HeaderTemplate>
                                    <asp:Image ID="YellowCardsImage" runat="server" ImageUrl="~/Images/MatchIcons/yellow.png" ToolTip="<%$ Resources:Resource, MatchRatings_YellowCardsImageToolTip  %>" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="YellowCardsTextLabel" runat="server" Text='<%# Eval("YellowCards") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="5%">
                                <HeaderTemplate>
                                    <asp:Image ID="RedCardsHeaderImage" runat="server" ImageUrl="~/Images/MatchIcons/red.png" ToolTip="<%$ Resources:Resource, MatchRatings_RedCardsHeaderImageToolTip  %>" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="RedCardsTextLabel" runat="server" Text='<%# Eval("RedCards") %>' SkinID="GridLabel" ></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="8%">
                                <HeaderTemplate>
                                    <asp:Label ID="ShortPassesHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_ShortPassingHeader  %>"  ToolTip="<%$ Resources:Resource, MatchRatings_ShortPassesHeaderToolTip  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="ShortPassesGoodLeabel" runat="server" Text='<%# Eval("ShortPassesGood") %>' SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="ShortPassesDashLabel" runat="server" Text="/" ToolTip='<%# Eval("ShortPassesGood") + " out of " + Eval("ShortPasses") %>'
                                     SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="ShortPassesLabel" runat="server" Text='<%# Eval("ShortPasses") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="8%">
                                <HeaderTemplate>
                                    <asp:Label ID="LongPassesHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_LongPassingHeader  %>"  ToolTip="<%$ Resources:Resource, Global_LongPasses  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="LongPassesGoodLabel" runat="server" Text='<%# Eval("LongPassesGood") %>' SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="LongPassesDashLabel" runat="server" Text="/" ToolTip='<%# Eval("LongPassesGood") + " out of " + Eval("LongPasses") %>'
                                     SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="LongPassesLabel" runat="server" Text='<%# Eval("LongPasses") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="8%">
                                <HeaderTemplate>
                                    <asp:Label ID="DribblesHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_DribblesHeader  %>" ToolTip="<%$ Resources:Resource, Global_Dribbles  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="DribblesGoodLabel" runat="server" Text='<%# Eval("DribblesGood") %>' SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="DribblesDashLabel" runat="server" Text="/" ToolTip='<%# Eval("DribblesGood") + " out of " + Eval("Dribbles") %>'
                                     SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="DribblesLabel" runat="server" Text='<%# Eval("Dribbles") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="8%">
                                <HeaderTemplate>
                                    <asp:Label ID="ShotsHeaderLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_ShotsHeaderLabel  %>"  ToolTip="<%$ Resources:Resource, MatchRatings_ShotsHeaderToolTip  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="ShotsGoodLabel" runat="server" Text='<%# Eval("ShotsGood") %>' SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="ShotsDashLabel" runat="server" Text="/" ToolTip='<%# Eval("ShotsGood") + " out of " + Eval("Shots") %>'
                                     SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="ShotsLabel" runat="server" Text='<%# Eval("Shots") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="8%">
                                <HeaderTemplate>
                                    <asp:Label ID="HeadersHeaderLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_HeadersHeaderLabel  %>" ToolTip="<%$ Resources:Resource, Global_Headers  %>"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="HeadersGoodLabel" runat="server" Text='<%# Eval("HeadersGood") %>' SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="HeadersDashLabel" runat="server" Text="/" ToolTip='<%# Eval("HeadersGood") + " out of " + Eval("Headers") %>'
                                     SkinID="GridLabel"></asp:Label>
                                    <asp:Label ID="ShotsLabel" runat="server" Text='<%# Eval("Headers") %>' SkinID="GridLabel"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EmptyDataTemplate>
                            <asp:Label ID="NoPlayrsLabel" runat="server" Text="<%$ Resources:Resource, MatchRatings_NoPlayrsLabel  %>"></asp:Label>
                        </EmptyDataTemplate>
                    </asp:GridView>
                    <asp:SqlDataSource ID="playerRatingsForAwayHomeTeamSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                        SelectCommand="Nivdal_GetPostMatchPlayerRatingsAway" SelectCommandType="StoredProcedure">
                    </asp:SqlDataSource> 
                </div>           
            </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel runat="server">
            <HeaderTemplate>
                <div style="padding-top:8px;">
                    <asp:Label ID="RatingDetailsLabel" runat="server" Text="<%$ Resources:Resource, Global_Details  %>"
                    SkinID="TeamNameLabel"></asp:Label>
                </div>
            </HeaderTemplate>
            <ContentTemplate>
                <div style="padding-top:25px;">
                <table style="width:100%;">
                <tr>
                <td style="width:50%;">
                    <asp:Label ID="HomeTeamNameLabel" runat="server" SkinID="TeamNameLabel"></asp:Label>
                    <table style="border-collapse:collapse; background-color:White;" cellpadding="2px" cellspacing="1" >
                        <tr>
                            <td colspan="2" class="grid_header">
                                
                            </td>            
                            <td style="width:15%;" class="grid_header">
                                <asp:Label ID="ShortPassesHomeTitleLabel" runat="server" 
                                Text="<%$ Resources:Resource, Global_ShortPassingHeader %>"
                                ToolTip="<%$ Resources:Resource, MatchRatings_ShortPassesHeaderToolTip %>" ></asp:Label>
                            </td>
                            <td style="width:13%;" class="grid_header">
                                <asp:Label ID="LongPassesHomeTitleLabel" runat="server"
                                 Text="<%$ Resources:Resource, Global_LongPassingHeader %>"
                                 ToolTip="<%$ Resources:Resource, Global_LongPasses %>" ></asp:Label>
                            </td>
                            <td style="width:13%;" class="grid_header">
                                <asp:Label ID="DribblesHomeTitleLabel" runat="server" 
                                 Text="<%$ Resources:Resource, Global_DribblesHeader %>"
                                 ToolTip="<%$ Resources:Resource, Global_Dribbles %>" ></asp:Label>
                            </td>
                            <td style="width:13%;" class="grid_header">
                                <asp:Label ID="ShotsHomeTitleLabel" runat="server"
                                 Text="<%$ Resources:Resource, MatchRatings_ShotsHeaderLabel %>"
                                 ToolTip="<%$ Resources:Resource, MatchRatings_ShotsHeaderToolTip %>" ></asp:Label>
                            </td>
                            <td style="width:13%;" class="grid_header">
                                <asp:Label ID="HeadersHomeTitleLabel" runat="server" 
                                 Text="<%$ Resources:Resource, MatchRatings_HeadersHeaderLabel %>"
                                 ToolTip="<%$ Resources:Resource, Global_Headers %>" ></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="width:17%;" rowspan="3" class="grid_cell">
                                <asp:Label ID="DefenceHomeTitleLabel" runat="server" SkinID="GridLabel"
                                Text="<%$ Resources:Resource, MatchRatings_DefenceLabelText %>"></asp:Label>
                            </td>
                            <td style="width:16%;" class="grid_cell">
                                <asp:Label ID="LeftDefenceHomeTitleLabel" runat="server" SkinID="GridLabel"
                                 Text="<%$ Resources:Resource, MatchRatings_LeftSideTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesHomeLabel7" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesHomeLabel7" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesHomeLabel7" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="grid_cell">
                                <asp:Label ID="CentralDefenceHomeTitleLabel" runat="server" SkinID="GridLabel"
                                 Text="<%$ Resources:Resource, MatchRatings_CenterTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesHomeLabel8" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesHomeLabel8" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesHomeLabel8" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="grid_cell">
                                <asp:Label ID="RightDefenceHomeTitleLabel" runat="server" SkinID="GridLabel"
                                 Text="<%$ Resources:Resource, MatchRatings_RightSideTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesHomeLabel9" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesHomeLabel9" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesHomeLabel9" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td rowspan="3" class="grid_cell">
                                <asp:Label ID="MidfieldHomeTitleLabel" runat="server" SkinID="GridLabel" 
                                Text="<%$ Resources:Resource, MatchRatings_MidfieldLabelText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LeftMidfieldHomeTitleLabel" runat="server" SkinID="GridLabel"
                                 Text="<%$ Resources:Resource, MatchRatings_LeftSideTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesHomeLabel4" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesHomeLabel4" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesHomeLabel4" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="grid_cell">
                                <asp:Label ID="CentralMidfieldHomeTitleLabel" runat="server" SkinID="GridLabel"
                                 Text="<%$ Resources:Resource, MatchRatings_CenterTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesHomeLabel5" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesHomeLabel5" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesHomeLabel5" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="grid_cell">
                                <asp:Label ID="RightMidfieldHomeTitleLabel" runat="server" SkinID="GridLabel"
                                 Text="<%$ Resources:Resource, MatchRatings_RightSideTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesHomeLabel6" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesHomeLabel6" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesHomeLabel6" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td rowspan="3" class="grid_cell">
                                <asp:Label ID="AttackHomeTitleLabel" runat="server" SkinID="GridLabel" 
                                Text="<%$ Resources:Resource, MatchRatings_AttackLabelText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LeftAttackHomeTitleLabel" runat="server" SkinID="GridLabel"
                                 Text="<%$ Resources:Resource, MatchRatings_LeftSideTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesHomeLabel1" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesHomeLabel1" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesHomeLabel1" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShotsHomeLabel1" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="HeadersHomeLabel1" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="grid_cell">
                                <asp:Label ID="CentralAttackHomeTitleLabel" runat="server" SkinID="GridLabel"
                                 Text="<%$ Resources:Resource, MatchRatings_CenterTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesHomeLabel2" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesHomeLabel2" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesHomeLabel2" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShotsHomeLabel2" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="HeadersHomeLabel2" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="grid_cell">
                                <asp:Label ID="RightAttackHomeTitleLabel" runat="server" SkinID="GridLabel"
                                 Text="<%$ Resources:Resource, MatchRatings_RightSideTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesHomeLabel3" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesHomeLabel3" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesHomeLabel3" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShotsHomeLabel3" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="HeadersHomeLabel3" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                        </tr>
                        
                    </table>     
                </td>
                <td style="width:50%;">
                    <asp:Label ID="AwayTeamNameLabel" runat="server" SkinID="TeamNameLabel"></asp:Label>
                    <table cellpadding="2" cellspacing="1" style="border-collapse:collapse; background-color:White;">
                        <tr>
                            <td colspan="2" class="grid_header">                           
                            </td>
                            <td class="grid_header" style="width:15%;">
                                <asp:Label ID="ShortPassesAwayTitleLabel" runat="server"
                                Text="<%$ Resources:Resource, Global_ShortPassingHeader %>"
                                ToolTip="<%$ Resources:Resource, MatchRatings_ShortPassesHeaderToolTip %>" ></asp:Label>
                            </td>
                            <td class="grid_header" style="width:13%;">
                                <asp:Label ID="LongPassesAwayTitleLabel" runat="server"
                                 Text="<%$ Resources:Resource, Global_LongPassingHeader %>"
                                 ToolTip="<%$ Resources:Resource, Global_LongPasses %>" ></asp:Label>
                            </td>
                            <td class="grid_header" style="width:13%;">
                                <asp:Label ID="DribblesAwayTitleLabel" runat="server"
                                 Text="<%$ Resources:Resource, Global_DribblesHeader %>"
                                 ToolTip="<%$ Resources:Resource, Global_Dribbles %>" ></asp:Label>
                            </td>
                            <td class="grid_header" style="width:13%;">
                                <asp:Label ID="ShotsAwayTitleLabel" runat="server"
                                 Text="<%$ Resources:Resource, MatchRatings_ShotsHeaderLabel %>"
                                 ToolTip="<%$ Resources:Resource, MatchRatings_ShotsHeaderToolTip %>" ></asp:Label>
                            </td>
                            <td class="grid_header" style="width:13%;">
                                <asp:Label ID="HeadersAwayTitleLabel" runat="server"
                                 Text="<%$ Resources:Resource, MatchRatings_HeadersHeaderLabel %>"
                                 ToolTip="<%$ Resources:Resource, Global_Headers %>" ></asp:Label>
                            </td>
                        
                        </tr>
                        <tr>
                            <td rowspan="3" style="width:17%;" class="grid_cell">
                                <asp:Label ID="DefenceAwayTitleLabel" runat="server" SkinID="GridLabel" 
                                Text="<%$ Resources:Resource, MatchRatings_DefenceLabelText %>"></asp:Label>
                            </td>
                            <td style="width:16%;" class="grid_cell">
                                <asp:Label ID="LeftDefenceAwayTitleLabel" runat="server" SkinID="GridLabel" 
                                Text="<%$ Resources:Resource, MatchRatings_LeftSideTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesAwayLabel3" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesAwayLabel3" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesAwayLabel3" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                        
                        </tr>
                        <tr>
                            <td class="grid_cell">
                                <asp:Label ID="CentralDefenceAwayTitleLabel" runat="server" SkinID="GridLabel" 
                                Text="<%$ Resources:Resource, MatchRatings_CenterTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesAwayLabel2" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesAwayLabel2" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesAwayLabel2" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                        
                        </tr>
                        <tr>
                            <td class="grid_cell">
                                <asp:Label ID="RightDefenceAwayTitleLabel" runat="server" SkinID="GridLabel" 
                                Text="<%$ Resources:Resource, MatchRatings_RightSideTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesAwayLabel1" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesAwayLabel1" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesAwayLabel1" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                            <td class="grid_cell">
                                &nbsp;                            
                            </td>
                        
                        </tr>
                        <tr>
                            <td rowspan="3" class="grid_cell">
                                <asp:Label ID="MidfieldAwayTitleLabel" runat="server" SkinID="GridLabel" 
                                Text="<%$ Resources:Resource, MatchRatings_MidfieldLabelText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LeftMidfieldAwayTitleLabel" runat="server" SkinID="GridLabel" 
                                Text="<%$ Resources:Resource, MatchRatings_LeftSideTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesAwayLabel6" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesAwayLabel6" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesAwayLabel6" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                        
                        </tr>
                        <tr>
                            <td class="grid_cell">
                                <asp:Label ID="CentralMidfieldAwayTitleLabel" runat="server" SkinID="GridLabel" 
                                Text="<%$ Resources:Resource, MatchRatings_CenterTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesAwayLabel5" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesAwayLabel5" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesAwayLabel5" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="grid_cell">
                                <asp:Label ID="RightMidfieldAwayTitleLabel" runat="server" SkinID="GridLabel" 
                                Text="<%$ Resources:Resource, MatchRatings_RightSideTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesAwayLabel4" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesAwayLabel4" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesAwayLabel4" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                            <td class="grid_cell">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td rowspan="3" class="grid_cell">
                                <asp:Label ID="AttackAwayTitleLabel" runat="server" SkinID="GridLabel" 
                                Text="<%$ Resources:Resource, MatchRatings_AttackLabelText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LeftAttackAwayTitleLabel" runat="server" SkinID="GridLabel" 
                                Text="<%$ Resources:Resource, MatchRatings_LeftSideTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesAwayLabel9" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesAwayLabel9" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesAwayLabel9" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShotsAwayLabel9" runat="server" SkinID="GridLabel"></asp:Label>                            
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="HeadersAwayLabel9" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="grid_cell">
                                <asp:Label ID="CentralAttackTitleLabel" runat="server" SkinID="GridLabel" 
                                Text="<%$ Resources:Resource, MatchRatings_CenterTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesAwayLabel8" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesAwayLabel8" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesAwayLabel8" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShotsAwayLabel8" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="HeadersAwayLabel8" runat="server" SkinID="GridLabel"></asp:Label> 
                            </td>
                        </tr>
                        <tr>
                            <td class="grid_cell">
                                <asp:Label ID="RighthAttackAwayTitleLabel" runat="server" SkinID="GridLabel" 
                                Text="<%$ Resources:Resource, MatchRatings_RightSideTitleText %>"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShortPassesAwayLabel7" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="LongPassesAwayLabel7" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="DribblesAwayLabel7" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="ShotsAwayLabel7" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                            <td class="grid_cell">
                                <asp:Label ID="HeadersAwayLabel7" runat="server" SkinID="GridLabel"></asp:Label>
                            </td>
                        </tr>
                    </table>
                        
                </td>
                </tr>
                </table>
                       

                
                </div>
            </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel ID="TabPanel1" runat="server" Visible="false">
            <HeaderTemplate>
                <div style="padding-top:8px;">
                    <asp:Label ID="Label1" runat="server" Text="מפה טרמית 1 2 3 ניסיון" SkinID="TeamNameLabel"></asp:Label>
                </div>
            </HeaderTemplate>
            <ContentTemplate>
            <table cellpadding="0" cellspacing="0">
            <tr style="height:213px;">
            <td style="width:213px; background-color:rgb(226,83,83);"></td>
            <td style="width:71px; background-image:url('/Images/TermicMap/vrg.png')"></td>
            <td style="width:213px; background-color:rgb(107,223,128);"></td>
            <td style="width:71px;  background-image:url('/Images/TermicMap/vg.png')"></td>
            <td style="width:213px;  background-color:rgb(107,223,128);"></td>
            </tr>
            <tr style="height:71px;">
            <td style="background-image:url('/Images/TermicMap/org.png');"></td>
            <td style="background-image:url('/Images/TermicMap/krggg.png');"></td>
            <td style="background-color:rgb(107,223,128);"></td>
            <td style="background-image:url('/Images/TermicMap/kggrg.png');"></td>
            <td style="background-image:url('/Images/TermicMap/ogr.png');"></td>
            </tr>
            <tr style="height:213px; ">
            <td style="background-color:rgb(107,223,128);"></td>
            <td style="background-image:url('/Images/TermicMap/vg.png')"></td>
            <td style="background-color:rgb(107,223,128);"></td>
            <td style="background-image:url('/Images/TermicMap/vgr.png')"></td>
            <td style="background-color:rgb(226,83,83);"></td>
            </tr>
            <tr style="height:71px;">
            <td style="background-image:url('/Images/TermicMap/ogr.png');"></td>
            <td style="background-image:url('/Images/TermicMap/kggrr.png');"></td>
            <td style="background-image:url('/Images/TermicMap/ogr.png');"></td>
            <td style="background-image:url('/Images/TermicMap/kgrrr.png');"></td>
            <td style="background-color:rgb(226,83,83);"></td>
            </tr>
            <tr style="height:213px;">
            <td style="background-color:rgb(226,83,83);"></td>
            <td style="background-image:url('/Images/TermicMap/vr.png')"></td>
            <td style="background-color:rgb(226,83,83);"></td>
            <td style="background-image:url('/Images/TermicMap/vr.png')"></td>
            <td style="background-color:rgb(226,83,83);"></td>
            </tr>
            </table>
            </ContentTemplate>
        </asp:TabPanel>
            
    </asp:TabContainer>                
    <asp:SqlDataSource ID="HomeTeamDataSourse" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
     SelectCommand="Nivdal_GetMatchHomeTeam" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
     <asp:SqlDataSource ID="AwayTeamDataSourse" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
     SelectCommand="Nivdal_GetMatchAwayTeam" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    </div>
    </div>
</asp:Content>

